package close.mazegame.art;

import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class EffectTextures {
	
	public static EffectTextures explosion = new EffectTextures("res/effects/explosion.png", 256);
	public static EffectTextures smoke_puff = new EffectTextures("res/effects/smoke_grey.png", 92);
	public static EffectTextures smoke_black = new EffectTextures("res/effects/smoke_black.png", 79);
	
	private TextureRegion[] textures;
	
	public EffectTextures(String filename, int size) {
		this(filename, size, size);
	}
	
	public EffectTextures(String filename, int xSize, int ySize) {
		textures = Art.split(filename, xSize, ySize);
	}
	
	public int getNTextures() {
		return textures.length;
	}
	
	public TextureRegion getTexture(int n) {
		return textures[n];
	}
	
}
